<%-- 
    Document   : editRosterEntry
    Created on : Feb 25, 2011, 12:21:19 PM
    Author     : Elise
--%>
<div class="centreForm">
    <h1>Edit roster entry</h1>
    <c:if test="${!empty updateEntryFailureFlag}">
        <p class="message errorMessage">Unable to update roster entry details.</p>
    </c:if>
    <c:if test="${!empty entryName}">
        <p class="message confirmationMessage">${entryName} has been updated in the database.</p>
    </c:if>
    <form method="post" action="<c:url value='/roster/edit'/>">
        <fieldset>
            <legend>Details</legend>
            <label for="shift">Shift:</label>
            <br />
            <select name = "shift">
                <option value="1" <c:if test = "value = '${entry.shift}'">selected ="selected"</c:if>>1</option>
                <option value="2" <c:if test = "value = '${entry.shift}'">selected ="selected"</c:if>>2</option>
                <option value="3" <c:if test = "value = '${entry.shift}'">selected ="selected"</c:if>>3</option>
            </select><br />

            <p>
            <label for="day">Date:</label>
            <br />

            <select name="day">
                <option value="1">1
                <option value="2">2
                <option value="3">3
                <option value="4">4
                <option value="5">5
                <option value="6">6
                <option value="7">7
                <option value="8">8
                <option value="9">9
                <option value="10">10
                <option value="11">11
                <option value="12">12
                <option value="13">13
                <option value="14">14
                <option value="15">15
                <option value="16">16
                <option value="17">17
                <option value="18">18
                <option value="19">19
                <option value="20">20
                <option value="21">21
                <option value="22">22
                <option value="23">23
                <option value="24">24
                <option value="25">25
                <option value="26">26
                <option value="27">27
                <option value="28">28
                <option value="29">29
                <option value="30">30
                <option value="31">31
            </select>
            <select name="month">
                <option value="0">January
                <option value="1">February
                <option value="2">March
                <option value="3">April
                <option value="4">May
                <option value="5">June
                <option value="6">July
                <option value="7">August
                <option value="8">September
                <option value="9">October
                <option value="10">November
                <option value="11">December
            </select>
            <select name = "year">
                <option value="2011">2011
                <option value="2012">2012
                <option value="2013">2013
                <option value="2014">2014
                <option value="2015">2015
            </select>
            <br />
            </p>
            <p>
            <label for="stHours">Start time:</label>
            <select name="stHours">
                <option value="1">1
                <option value="2">2
                <option value="3">3
                <option value="4">4
                <option value="5">5
                <option value="6">6
                <option value="7">7
                <option value="8">8
                <option value="9">9
                <option value="10">10
                <option value="11">11
                <option value="12">12
                <option value="13">13
                <option value="14">14
                <option value="15">15
                <option value="16">16
                <option value="17">17
                <option value="18">18
                <option value="19">19
                <option value="20">20
                <option value="21">21
                <option value="22">22
                <option value="23">23
                <option value="24">24
            </select>
            <select name="stMinutes">
                <option value="0">:00
                <option value="5">:05
                <option value="10">:10
                <option value="15">:15
                <option value="20">:20
                <option value="25">:25
                <option value="30">:30
                <option value="35">:35
                <option value="40">:40
                <option value="45">:45
                <option value="50">:50
                <option value="55">:55
            </select><br />
            <p>
            <label for="endHours">End time:</label>
            <select name="endHours">
                <option value="0">0
                <option value="1">1
                <option value="2">2
                <option value="3">3
                <option value="4">4
                <option value="5">5
                <option value="6">6
                <option value="7">7
                <option value="8">8
                <option value="9">9
                <option value="10">10
                <option value="11">11
                <option value="12">12
                <option value="13">13
                <option value="14">14
                <option value="15">15
                <option value="16">16
                <option value="17">17
                <option value="18">18
                <option value="19">19
                <option value="20">20
                <option value="21">21
                <option value="22">22
                <option value="23">23
            </select>
            <select name="endMinutes">
                <option value="0">:00
                <option value="5">:05
                <option value="10">:10
                <option value="15">:15
                <option value="20">:20
                <option value="25">:25
                <option value="30">:30
                <option value="35">:35
                <option value="40">:40
                <option value="45">:45
                <option value="50">:50
                <option value="55">:55
            </select><br />
            </p>
            <label for="staff">Staff on duty:</label>
            <select multiple name="staffID">
                <c:forEach var="singleStaff" items="${staff}">
                    <option value="${singleStaff.id}">${singleStaff.name}</option>
                </c:forEach>
            </select><br />
            <input type="submit" class="submit" value="Add shift" />
        </fieldset>
    </form>
</div>
